//
//  OfficialTableViewCell.m
//  LeagueOfLegend
//
//  Created by appying_wxj on 14-7-7.
//  Copyright (c) 2014年 appying_wxj. All rights reserved.
//

#import "OfficialTableViewCell.h"

@implementation OfficialTableViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        // 英雄的图片
        UIImageView *heroImg = [[UIImageView alloc] initWithFrame:CGRectMake(20, 7, 30, 30)];
        self.heroImage = heroImg;
        [self.contentView addSubview:heroImg];
        
        // 英雄的名字
        UILabel *titleLab = [[UILabel alloc] initWithFrame:CGRectMake(70, 10, 180, 24)];
        self.titleLabel = titleLab;
        titleLab.backgroundColor = [UIColor clearColor];
        [self.contentView addSubview:titleLab];
        
        // 更新的时间
        UILabel *timeLab = [[UILabel alloc] initWithFrame:CGRectMake(20, 10, 180, 24)];
        self.timeLable = timeLab;
        timeLab.font = [UIFont systemFontOfSize:14];
        timeLab.backgroundColor = [UIColor clearColor];
        [self.contentView addSubview:timeLab];
        
        
        // 下一步的按钮
        UIButton *goToNextButton = [UIButton buttonWithType:UIButtonTypeCustom];
        goToNextButton.frame = CGRectMake(290, 0, 30, 44);
        [goToNextButton setImage:[UIImage imageNamed:@"image_xiayibu"] forState:UIControlStateNormal];
        self.nextButton = goToNextButton;
        [self.contentView addSubview:goToNextButton];
        
        //        UIButton *nextBtn= [UIButton buttonWithType:UIButtonTypeCustom];
        //        nextBtn.frame = CGRectMake(280,7, 30, 30);
        //        self.nextButton = nextBtn;
        //        [self addSubview:nextBtn];
    }
    return self;
}

- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

@end
